
Ext.define('Sencha.model.Conjugation', {
    extend: 'Ext.data.Model',
    config: {
        fields: [
                 { name: 'id', type: 'int', fieldOption: 'PRIMARY KEY' },
                 { name: 'subjectId', type: 'string'},
                 { name: 'stemId', type: 'string' },
                 { name: 'objectId', type: 'string' },
                 { name: 'directionId', type: 'string' },
                 { name: 'tenseId', type: 'string' },
                 { name: 'numberId', type: 'string' },
                 { name: 'sourceInflection', type: 'string' },
                 { name: 'targetInflection', type: 'string' },
                 { name: 'orthography', type: 'string' },
                 { name: 'audioURL', type: 'string' }
        ],
        
        proxy: {
           type: 'sqlitestorage',
           dbConfig: {
           		tablename: 'CONJUGATION',
           		dbConn: Ext.DbConnection
           },
           reader: {type:'array'}
        
        }
    },
    writer: {
    	type: 'array'
    }

});
